package com.cloud.spider.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description:
 * @ClassName: IndexController
 * @Package: com.cloud.spider.controller
 * @Author 柳晓宇
 * @Create 2023/10/10 16:17
 * @Version 1.0
 *
 * <p>
 *    注意：当返回的页面名称一样时，freemarker会优先渲染页面
 * </p>
 */
@Controller
public class IndexController {


    @RequestMapping(value = "/")
    public String index(){
        return "index";
    }


    @RequestMapping("/2")
    public String index2(){
        return "book";
    }

    @RequestMapping("/novel")
    public String novelWebsite(){
        return "page/novel";
    }

    @RequestMapping("/form-step")
    public String step(){
        return "page/form-step";
    }
}
